//
//  TraderSeachByStoreViewController.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/4/28.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//   分销商 －－ 门店查询

#import "TraderSeachByStoreViewController.h"
#import "TraderMoveManToStoreCell.h"
#import "SearchResultsViewController.h"

@interface TraderSeachByStoreViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@end

@implementation TraderSeachByStoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    [self addSearchRightItem];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return [TraderMoveManToStoreCell cellWithTableView:tableView];
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    SearchResultsViewController *vc = [[SearchResultsViewController alloc]initWithNibName:@"SearchResultsViewController" bundle:nil];
    vc.seachResultType = searchByStore;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
